package com.rany.day05.demo03;

public class Person {
    private boolean live = true;
    class Heart{
        public void method(){
            System.out.println("hhhhh");
        }
        public void jump(){
            //直接访问外部类
            if(live){
                System.out.println("心脏鹏鹏跳");
            }else {
                System.out.println("不跳了");
            }
        }
    }
    public void bodyMethod(){
        new Heart().jump();
    }

}
